pinctrl: gpio: Add callback for configuring pin as GPIO
authorMarek Vasut <[email protected]>
Sun, 21 Apr 2019 21:57:23 +0000 (23:57 +0200)
committerMarek Vasut <[email protected]>
Sat, 4 May 2019 17:26:49 +0000 (19:26 +0200)
commitae59d7ca59dbfc770531f51c717dc6f5d9a18f78
tree085d88b860d48e92aa9ed290a80e391cb9044162
parent175f5027345c7feaa41e8f4201778814bf72fe37
pinctrl: gpio: Add callback for configuring pin as GPIO

Add callback to configure, and de-configure, pin as a GPIO on the
pin controller side. This matches similar functionality in Linux
and aims to replace the ad-hoc implementations present in U-Boot.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Alex Kiernan <[email protected]>
Cc: Christoph Muellner <[email protected]>
Cc: Eugeniu Rosca <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick DELAUNAY <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Simon Glass <[email protected]>
drivers/pinctrl/pinctrl-uclass.c
include/dm/pinctrl.h